<template>
	<view>
		<view class="mitem" v-for="(item,index) in dataList" :key="item">
			<image class="img" :src="item.imageUrl" style="width: 150px;height: 80px;" mode=""></image>
			<view class="right">

				<view class="jss">
					<text class="sui">{{item.jies}}</text>

				</view>
				<view class="hh">
					<text class="js">{{item.xsjs}}</text>
				</view>
				<view class="prc">
					<text class="price">
						￥
					</text>
					<text class="pr">
						{{item.pric}}
					</text>

				</view>
				<view class="fws">
					<view class="fw">服务总价值约 <text>￥{{item.yuanj}}</text></view>
					<view class="btnn" @click="toTaocan">
						<u-button color="#02d1af" size="mini" shape="circle" text="立即选购"></u-button>
					</view>
				</view>
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		props: ["dataList"],
		methods: {
			toTaocan(){
				this.$toPage("/otherPage/packageDetails/packageDetails")
			}
		}
	}
</script>

<style lang="less">
	.mitem {
		background-color: #ffffff;
		display: flex;

		padding: 5px;
		border-radius: 8px;

		margin: 1px 5px;

		.img {
			// padding-left: 18px;
			// left: 50%;
			// transform: translateX(-50%); /* 使元素水平居中 */
			border-radius: 8px;


		}

		.right {
			// background-color: red;
			margin-left: 18px;

			.jss {
				padding: 0px 10px;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.sui {

					font-size: 15px;
					width: 100px;
					/* 设置容器的宽度 */
					white-space: nowrap;
					/* 不允许文本换行 */
					overflow: hidden;
					/* 超出容器部分隐藏 */
					text-overflow: ellipsis;
					/* 超出部分显示省略号 */
				}


			}

			.hh {
				font-size: 8px;
				color: #07c5b3;
				// padding: 5px;
			}

			.prc {
				color: #ff6223;
				// padding: 5px;

				.price {
					font-size: 8px;
				}

				.pr {
					font-size: 10px;
				}
			}

			.fws {
				display: flex;
				justify-content: space-between;
				// padding: 5px 8px;
				align-items: center;

				.fw {
					// background-color: #fee1d2;
					color: #7b704f;
					font-size: 12px;

					text {
						font-size: 8px;
						color: #ff6223;
					}
				}

				.btnn {
					width: fit-content;
					height: 30px;
					margin-left: 45px;
				}
			}
		}
	}
</style>